package com.himiotech.core.project.model.metadata;

/**
 * @author wuwenbin
 * @date 2021-05-13 17:49:14
 **/
public enum GenTableColumnMetadata {

    /**
     * 字段类型列举，方便 mp 的 wrapper 使用
     */
	COLUMN_ID("column_id"),
	TABLE_ID("table_id"),
	COLUMN_NAME("column_name"),
	COLUMN_COMMENT("column_comment"),
	COLUMN_TYPE("column_type"),
	JAVA_TYPE("java_type"),
	JAVA_FIELD("java_field"),
	IS_PK("is_pk"),
	IS_INCREMENT("is_increment"),
	IS_REQUIRED("is_required"),
	IS_INSERT("is_insert"),
	IS_EDIT("is_edit"),
	IS_LIST("is_list"),
	IS_QUERY("is_query"),
	QUERY_TYPE("query_type"),
	HTML_TYPE("html_type"),
	DICT_TYPE("dict_type"),
	SORT("sort"),
	CREATE_BY("create_by"),
	CREATE_TIME("create_time"),
	UPDATE_BY("update_by"),
	UPDATE_TIME("update_time");

    private final String colName;

    GenTableColumnMetadata(String colName) {
        this.colName = colName;
    }

    public String getColName() {
        return colName;
    }
}
